package com.example.demo;

import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Created by Administrator on 2018-3-2.
 *
 *熔断器的使用
 */
@Component
public class HelloRemoteHystrix implements ProducerRemote {

    @Override
    public String helloWord(@RequestParam(value = "name") String name) {
        return "hello" +name+", this messge send failed ";
    }
}
